package cn.wolfcode.lww.service.impl;

import cn.wolfcode.lww.domain.Place;
import cn.wolfcode.lww.mapper.PlaceMapper;
import cn.wolfcode.lww.service.PlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PlaceServiceImpl implements PlaceService {
    @Autowired
    PlaceMapper placeMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        int i = placeMapper.deleteByPrimaryKey(id);
        return i;
    }

    @Override
    public int insert(Place record)
    {
        int i = placeMapper.insert(record);
        return i;
    }

    @Override
    public Place selectByPrimaryKey(Integer id)
    {
        Place place = placeMapper.selectByPrimaryKey(id);
        return place;
    }

    @Override
    public List<Place> selectAll()
    {
        List<Place> places = placeMapper.selectAll();
        return places;
    }

    @Override
    public int updateByPrimaryKey(Place record) {
        return 0;
    }
}
